#!/bin/bash

# 安装依赖并启动所有应用
echo "正在启动微前端项目..."

# 启动主应用
cd main-app
npm install
npm run serve &

# 启动 Vue2 子应用
cd ../vue2-sub-app
npm install
npm run serve &

# 启动 Vue3 子应用
cd ../vue3-sub-app
npm install
npm run serve &

echo "所有应用已启动！"
echo "主应用: http://localhost:8080"
echo "Vue2子应用: http://localhost:8081"
echo "Vue3子应用: http://localhost:8082" 